import request from '@/utils/request'

// 查询路径规划列表
export function listRoutePlanning(query) {
  return request({
    url: '/system/RoutePlanning/list',
    method: 'get',
    params: query
  })
}

// 查询路径规划详细
export function getRoutePlanning(routeId) {
  return request({
    url: '/system/RoutePlanning/' + routeId,
    method: 'get'
  })
}

// 新增路径规划
export function addRoutePlanning(data) {
  return request({
    url: '/system/RoutePlanning',
    method: 'post',
    data: data
  })
}

// 修改路径规划
export function updateRoutePlanning(data) {
  return request({
    url: '/system/RoutePlanning',
    method: 'put',
    data: data
  })
}

// 删除路径规划
export function delRoutePlanning(routeId) {
  return request({
    url: '/system/RoutePlanning/' + routeId,
    method: 'delete'
  })
}
